<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>贷款</title>
    <!--bootstrap要导入的文件-->
    <script th:src="@{/script/jquery-1.12.4.js}"></script>
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}"/>
    <link rel="stylesheet" th:href="@{/css/loanmian.css}"/>
    <script th:src="@{/script/bootstrap.js}"></script>
    <script th:src="@{/bootstrap/js/city-picker.data.js}"></script>
    <script th:src="@{/bootstrap/js/city-picker.js}"></script>
    <link rel="stylesheet" th:href="@{/bootstrap/css/city-picker1.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/css/common.css}"/>
    <link rel="stylesheet" th:href="@{/css/index.css}" type="text/css">
    <script th:src="@{/script/common.js}" type="text/javascript"></script>
    <script th:src="@{/script/vue.min.js}" type="text/javascript"></script>
    <script th:src="@{/script/axios.min.js}" type="text/javascript"></script>
    <script type="text/javascript">
        // 上下滚动
        function AutoScroll(obj) {
            $(obj).find("ul:first").animate({
                    marginTop: "-25px"
                },
                500,
                function () {
                    $(this).css({
                        marginTop: "0px"
                    }).find("li:first").appendTo(this);
                });
        }

        $(document).ready(function () {
            var myar = setInterval('AutoScroll("#scrollDiv")', 3000);
            $("#scrollDiv").hover(function () {
                    clearInterval(myar);
                },
                function () {
                    myar = setInterval('AutoScroll("#scrollDiv")', 3000)
                }); //当鼠标放上去的时候，滚动停止，鼠标离开的时候滚动开始
        });
    </script>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div th:replace="loan/public::head"></div>
    </div>
    <div class="row">
        <div>
            <img th:src="@{/images/head.jpg}" width="100%"/>
        </div>
    </div>
    <div class="row">
        <div style="width:1200px;height: 433px;background-color: #fff;padding-top: 78px;margin: 40px auto;position: relative">
            <h1 class="prd_title">明星产品</h1>
            <ul class="star_list">
                <li class="default_shadow" style="border:1px solid #ddd;width: 348px;
    height: 330px;float: left">
                    <a class="title_img" otitle="明星产品-小额消费贷" otype="button" style="display:block;" target="_blank" th:href="@{/loan/credit}">
                        <img height="204" th:src="@{/images/3.png}" tppabs="http://daikuan.pingan.com/app_images/loan2020/3.png" width="348"></a>

                    <a class="title_img" otitle="明星产品-小额消费贷" otype="button" style="display:block;" target="_blank" th:href="@{/loan/credit}">
                        <div class="product_star_desc">
                            <div class="star_desc_title">小额消费贷 | 月入3000可申请</div>
                            <div class="star_desc_desc">无抵押 在线申请 <span>最快30分钟放款</span></div>
                            <div class="star_desc_btn">立即申请</div>
                        </div>
                    </a>
                </li>
                <li class="default_shadow" style="border:1px solid #ddd;width: 348px;
    height: 330px;float: left">
                    <a class="title_img" otitle="明星产品-公积金贷" otype="button" style="display:block;" target="_blank" th:href="@{/loan/credit_1}"
                       tppabs="http://daikuan.pingan.com/daikuan/xinyidai.shtml?source=daikuanpindaosy">
                        <img height="204" th:src="@{/images/1.png}" tppabs="http://daikuan.pingan.com/app_images/loan2020/1.png" width="348">
                    </a>
                    <div class="product_star_desc">
                        <a class="title_img" otitle="明星产品-公积金贷" otype="button" style="display:block;" target="_blank" th:href="@{/loan/credit_1}"
                           tppabs="http://daikuan.pingan.com/daikuan/xinyidai.shtml?source=daikuanpindaosy">

                            <div class="star_desc_title">公积金贷 | 无抵押信用贷</div>
                            <div class="star_desc_desc">门槛低 最快一天到账 <span>有公积金即可申请</span></div>
                            <div class="star_desc_btn">立即申请</div>
                        </a>
                    </div>

                </li>
                <li class="default_shadow" style="margin-right:0; border:1px solid #ddd;width: 348px;
    height: 330px;float: left">
                    <a class="title_img" href="chezhuxinyongdai.shtml-source=sy-chezhuxinyongdai.htm" otitle="明星产品-车主专享贷款" otype="button" style="display:block;"
                       target="_blank"
                       th:href="@{/loan/credit_2}">
                        <img height="204" th:src="@{/images/2.png}" tppabs="http://daikuan.pingan.com/app_images/loan2020/2.png" width="348"></a>

                    <a class="title_img" href="chezhuxinyongdai.shtml-source=sy-chezhuxinyongdai.htm" otitle="明星产品-车主专享贷款" otype="button" style="display:block;"
                       target="_blank"
                       th:href="@{/loan/credit_2}">
                        <div class="product_star_desc">
                            <div class="star_desc_title">车主专享贷 | 钱到手车照开</div>
                            <div class="star_desc_desc">额度最高50万 <span>到账最快一小时</span></div>
                            <div class="star_desc_btn">立即申请</div>
                        </div>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div style="width: 1200px;background-color: #fff;margin: 40px auto;position: relative">
            <div class="col-lg-9 pull-left" style="padding: 0">
                <div style="position: relative;display: inline-block">
                    <h1 class="xinyong_title">信用贷款</h1>
                    <div class="col-lg-12" style="background-color: #fff;width: 891px;padding: 0;">
                        <ul class="xingyong">
                            <li>
                                <a operation-sid="120" otitle="快速链接-新一贷" otype="button" target="_blank" th:href="@{/loan/credit}">
                                    <img height="150px" style="float: left;margin-top: 30px;margin-right: 15px" th:src="@{/images/index-363-CreditLoan-549.png}"
                                         width="150px"></a>
                                <div>
                                    <p style="font-size: 20px;margin:36px 0px 10px 0px">应急贷款</p>
                                    <p>最高可贷5万元</p>

                                    <p style="color: #658297;margin-top: 70px">立即申请</p>
                                </div>
                                </a>
                            </li>
                            <li>
                                <a operation-sid="120" otitle="快速链接-新一贷" otype="button" target="_blank" th:href="@{/loan/credit_1}">
                                    <img height="150px" style="float: left;margin-top: 30px;margin-right: 15px" th:src="@{/images/index-363-CreditLoan-556.png}"
                                         width="150px"></a>
                                <div>
                                    <p style="font-size: 20px;margin:36px 0px 10px 0px">公积金信用贷</p>
                                    <p>有公积金即可申请,门槛低</p>

                                    <p style="color: #658297;margin-top: 50px">立即申请</p>
                                </div>
                                </a>
                            </li>
                            <li style="border-right: 1px solid #cccccc">
                                <a operation-sid="120" otitle="快速链接-新一贷" otype="button" target="_blank" th:href="@{/loan/credit_4}">
                                    <img height="150px" style="float: left;margin-top: 30px;margin-right: 15px" th:src="@{/images/666.png}" width="150px"></a>
                                <div>
                                    <p style="font-size: 20px;margin:36px 0px 10px 0px">保单贷</p>
                                    <p>有寿险保单即可申请,最快一天到账</p>

                                    <p style="color: #658297;margin-top: 50px">立即申请</p>
                                </div>
                                </a>
                            </li>
                            <li style="border-bottom: 1px solid #cccccc">
                                <a operation-sid="120" otitle="快速链接-新一贷" otype="button" target="_blank" th:href="@{/loan/credit}">
                                    <img height="150px" style="float: left;margin-top: 30px;margin-right: 15px" th:src="@{/images/777.png}" width="150px"></a>
                                <div>
                                    <p style="font-size: 20px;margin:36px 0px 10px 0px">平安贷</p>
                                    <p>最高可贷5万元</p>

                                    <p style="color: #658297;margin-top: 70px">立即申请</p>
                                </div>
                                </a>
                            </li>
                            <li style="border-bottom: 1px solid #cccccc">
                                <a operation-sid="120" otitle="快速链接-新一贷" otype="button" target="_blank" th:href="@{/loan/credit_3}">
                                    <img height="150px" style="float: left;margin-top: 30px;margin-right: 15px" th:src="@{/images/index-363-CreditLoan-573.png}"
                                         width="150px"></a>
                                <div>
                                    <p style="font-size: 20px;margin:36px 0px 10px 0px">业主贷</p>
                                    <p>有房即可申请,无需抵押</p>

                                    <p style="color: #658297;margin-top: 50px">立即申请</p>
                                </div>
                                </a>
                            </li>
                            <li style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc">
                                <a operation-sid="120" otitle="快速链接-新一贷" otype="button" target="_blank" th:href="@{/loan/credit_2}">
                                    <img height="150px" style="float: left;margin-top: 30px;margin-right: 15px" th:src="@{/images/index-363-CreditLoan-578.png}"
                                         width="150px"></a>
                                <div>
                                    <p style="font-size: 20px;margin:36px 0px 10px 0px">车主信用贷</p>
                                    <p>不押证,不押车</p>

                                    <p style="color: #658297;margin-top: 70px">立即申请</p>
                                </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div style="position: relative;display: inline-block;margin-top: 80px">
                    <h1 class="diya_title">抵押贷款</h1>
                    <div class="col-lg-12" style="background-color: #fff;width: 891px;padding: 0;padding-top: 70px;">
                        <ul class="diya">
                            <li>
                                <a class="item_link" otitle="抵押贷款-汽车抵押贷" otype="button" target="_blank" th:href="@{/loan/credit_5}">
                                    <h3 class="title_h" style="margin-top: 25px">汽车抵押贷</h3>
                                    <p class="title_h_note">
                                        <span>钱借到 车照开</span>
                                    </p>
                                    <img th:src="@{/images/qjd_daikuan_chedidai.jpg}">
                                    <span class="link_btn">立即申请</span>
                                </a>
                            </li>
                            <li>
                                <a class="item_link" otitle="抵押贷款-汽车抵押贷" otype="button" target="_blank" th:href="@{/loan/credit_6}">
                                    <h3 class="title_h" style="margin-top: 25px">万能房抵贷</h3>
                                    <p class="title_h_note">
                                        <span>有房即可申请,有抵押</span>
                                    </p>
                                    <img th:src="@{/images/4444.jpg}">
                                    <span class="link_btn">立即申请</span>
                                </a>
                            </li>
                            <li style="border-right: 1px solid #c2c2c2">
                                <a class="item_link" href="chedidai.shtml-source=daikuanpindaosy-diyadai.htm" otitle="抵押贷款-汽车抵押贷" otype="button"
                                   target="_blank">
                                    <h3 class="title_h" style="margin-top: 25px">汽车抵押贷</h3>
                                    <p class="title_h_note">
                                        <span>钱借到 车照开</span>
                                    </p>
                                    <img th:src="@{/images/qjd_daikuan_chedidai.jpg}">
                                    <span class="link_btn">立即申请</span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-lg-3 pull-right">
                <div class="col-lg-12" style="width: 250px;background-color: #fff;margin-left: 32px;">
                    <div class="shuanloan">
                        <h3 class="title_h" style="    font-size: 16px;
    font-weight: 700;
    margin: 15px 0px 0px 59px">算算我能贷多少</h3>
                        <div id="shuan" style="display: block">
                            <p style="margin: 30px 0px 0px 10px">职业类型</p>
                            <ul>
                                <li><a id="1" onclick="typework(1)">上班族</a></li>
                                <li><a id="2" onclick="typework(2)">企业族</a></li>
                                <li><a id="3" onclick="typework(3)">自由职业族</a></li>
                            </ul>
                            <div>
                                <div id="distpicker">
                                    <div class="form-group" style="    margin-right: 13px;">
                                        <label style="    margin: 10px 0px 0px 5px;">所在城市</label>
                                        <div style="position: relative;    text-align:-webkit-center;">
                                            <input class="form-control" data-toggle="city-picker" id="address" name="address" placeholder="所在城市" readonly
                                                   style="width: 173px;
    height: 17px;" type="text">
                                        </div>
                                    </div>
                                    <div class="form-group" style="    margin: 9px 6px 0px 5px;">
                                        <label>月收入</label>
                                        <select class="combobox" name="monthmoney" style="margin-left: 38px;">
                                            <option value="小于3000">小于3000</option>
                                            <option value="3000-6000">3000-6000</option>
                                            <option value="6000-9000">6000-9000</option>
                                            <option value="9000-1万以上">9000-1万以上</option>
                                        </select>
                                    </div>
                                    <span name="error" style="color: red;margin: 8px"></span>
                                    <button onclick="shuanloan()" style="background-color: #658297;
    color: #fff;
    width: 150px;
    height: 40px;
    border: none;
    margin: 20px 0px 35px 18px;" type="button">算算我能贷多少
                                    </button>
                                </div>
                            </div>
                        </div>
                        <div id="result" style="display: none;text-align: center">
                            <p style="    font-size: 16px;
    margin: 50px 0px 0px 0px;">评估结果</p>
                            <p style="    font-size: 16px;
    margin: 5px 0px 0px 0px;">根据你的个人情况</p>
                            <p style="    font-size: 16px;
    margin: 5px 0px 0px 0px;">估计你最高可以贷</p>
                            <p style="    font-size: 25px;
    margin: 5px 0px 0px 0px;color: #658297">2万</p>
                            <a style="background-color: #658297;
    color: #fff;
    width: 150px;
    line-height: 40px;
    height: 40px;
    border: none;
    display: inline-block;
    margin: 20px 0px 35px -1px;" th:href="@{/loan/credit}">立即申请</a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-12" style="width: 250px;background-color: #fff;margin-left: 32px;margin-top: 30px">
                    <div class="xingright">
                        <h3 class="title_h" style="font-size: 16px;font-weight: 700;border-bottom: 1px solid #ccc;padding-bottom: 10px;">最近贷款</h3>
                        <p style="float: left;">贷款人</p>
                        <p style="margin-left: 150px">金额</p>
                        <ul class="zuiloan">
                            <li th:each="allloan : ${session.allloan}" th:if="${allloanStat.index} < 7">
                                <span th:text="${allloan.loanname}"></span>
                                <i th:text="${allloan.money}">19999元</i>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="col-lg-12" style="width: 250px;background-color: #fff;margin-left: 32px;margin-top: 30px">
                    <div class="xingright">
                        <h3 class="title_h" style="font-size: 16px;font-weight: 700;border-bottom: 1px solid #ccc;padding-bottom: 10px;">贷款常识</h3>
                        <ol class="chang" style="width: 200px;margin-left: 16px;">
                            <li class="detailed">
                                <i>●</i><a href="gfdkzhkynl.shtml.htm" otitle="购房贷款中还款与年龄的关系" otype="button" style="text-decoration: none"
                                           target="_blank" title="购房贷款中还款与年龄的关系" tppabs="http://daikuan.pingan.com/changshi/gfdkzhkynl.shtml">购房贷款中还款与年龄的关系</a>
                                <p style="width: 180px;margin-left: 16px;">
                                    然而，在选择购房贷款之时，不同年龄段的人，也需要考虑不同的现实问题。对于还款方式、贷款金额等等，不同年龄段的人有着工作、资产等不同等因素，在申请购房贷款之时，也有着不同的最有选择。现在，我们将为您解读其中的关键。</p>
                            </li>
                            <li><i>●</i><a href="cmlvzzdgrl.shtml.htm" otitle="出门旅游 只知道申请个人旅游贷款？" otype="button"
                                           target="_blank" title="出门旅游 只知道申请个人旅游贷款？" tppabs="http://daikuan.pingan.com/changshi/cmlvzzdgrl.shtml">出门旅游
                                只知道申请个人旅游贷款？</a>
                            </li>
                            <li><i>●</i><a href="zddkjgpjd.shtml.htm" otitle="针对贷款机构骗局的几个识别方法" otype="button"
                                           target="_blank" title="针对贷款机构骗局的几个识别方法"
                                           tppabs="http://daikuan.pingan.com/changshi/zddkjgpjd.shtml">针对贷款机构骗局的几个识别方法</a></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <!--网站底部-->
        <div th:replace="common/public::footer"></div>
    </div>
</div>
<script>
    $(function () {
        $('#myCarousel').carousel({
            interval: 7000,
        });
        $("#myCarousel li").click(function () {
            var index = $(this).attr("data-slide-to");
            $('#myCarousel').carousel(parseInt(index))
        })
    });

    function shuanloan() {
        var address = $("input[name='address']").val();
        var monthmoney = $("select[name='monthmoney']").val();
        if (address == null || address == "") {
            $("span[name='error']").text("请输入城市");
        } else {
            if (monthmoney == "小于3000") {
                var div1 = document.getElementById('shuan');
                div1.style.display = "none";
                var div2 = document.getElementById('result');
                div2.style.display = "block";
            }
        }

    }

    function typework(type) {
        if (type == 1) {
            var div1 = document.getElementById('1');
            div1.style.backgroundColor = "#658297";
            div1.style.color = "#fff";
            var div2 = document.getElementById('2');
            div2.style.backgroundColor = "#fff";
            div2.style.color = "black";
            var div3 = document.getElementById('3');
            div3.style.backgroundColor = "#fff";
            div3.style.color = "black";
        }
        if (type == 2) {
            var div1 = document.getElementById('1');
            div1.style.backgroundColor = "#fff";
            div1.style.color = "black";
            var div2 = document.getElementById('2');
            div2.style.backgroundColor = "#658297";
            div2.style.color = "#fff";
            var div3 = document.getElementById('3');
            div3.style.backgroundColor = "#fff";
            div3.style.color = "black";
        }
        if (type == 3) {
            var div1 = document.getElementById('1');
            div1.style.backgroundColor = "#fff";
            div1.style.color = "black";
            var div2 = document.getElementById('2');
            div2.style.backgroundColor = "#fff";
            div2.style.color = "black";
            var div3 = document.getElementById('3');
            div3.style.backgroundColor = "#658297";
            div3.style.color = "#fff";
        }
    }
</script>
</body>
</html>